package core.payment.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import core.product.model.Product;
import core.profile.model.BasicProfile;

@Entity
@Table(name="payment_history")
public class PaymentHistory implements Serializable
{
	private static final long serialVersionUID = -8778945643261247L;
	private Long uuid;
	private BasicProfile user;
	private Product product ;
	private Integer response ;
	private String transactionid ;
	private String orderid ;
	private Double amount ; 
	private String first_name ;
	private String last_name ;
	private String address_1 ;
	private String address_2 ;
	private String company ;
	private String city ;
	private String state ;
	private String country ;
	private String phone ;
	private Long postal_code ;
	private String email ;
	private String website ;
	/**
	 * @return the uuid
	 */
	@Id
	@GeneratedValue
	@Column(name="uuid")
	public Long getUuid() {
		return uuid;
	}
	/**
	 * @param uuid the uuid to set
	 */
	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}
	/**
	 * @return the user
	 */
	@ManyToOne(cascade = CascadeType.ALL)
	public BasicProfile getUser() {
		return user;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(BasicProfile user) {
		this.user = user;
	}
	/**
	 * @return the product
	 */
	@ManyToOne(cascade = CascadeType.ALL)
	public Product getProduct() {
		return product;
	}
	/**
	 * @param product the product to set
	 */
	public void setProduct(Product product) {
		this.product = product;
	}
	/**
	 * @return the response
	 */
	@Column(name="response")
	public Integer getResponse() {
		return response;
	}
	/**
	 * @param response the response to set
	 */
	public void setResponse(Integer response) {
		this.response = response;
	}
	/**
	 * @return the transactionid
	 */
	@Column(name="transactionid")
	public String getTransactionid() {
		return transactionid;
	}
	/**
	 * @param transactionid the transactionid to set
	 */
	public void setTransactionid(String transactionid) {
		this.transactionid = transactionid;
	}
	/**
	 * @return the orderid
	 */
	@Column(name="orderid")
	public String getOrderid() {
		return orderid;
	}
	/**
	 * @param orderid the orderid to set
	 */
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	/**
	 * @return the amount
	 */
	@Column(name="amount")
	public Double getAmount() {
		return amount;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	/**
	 * @return the first_name
	 */
	@Column(name="first_name")
	public String getFirst_name() {
		return first_name;
	}
	/**
	 * @param first_name the first_name to set
	 */
	public void setFirst_name(String first_name) {
		this.first_name = first_name;
	}
	/**
	 * @return the last_name
	 */
	@Column(name="last_name")
	public String getLast_name() {
		return last_name;
	}
	/**
	 * @param last_name the last_name to set
	 */
	public void setLast_name(String last_name) {
		this.last_name = last_name;
	}
	/**
	 * @return the address_1
	 */
	@Column(name="address_1")
	public String getAddress_1() {
		return address_1;
	}
	/**
	 * @param address_1 the address_1 to set
	 */
	public void setAddress_1(String address_1) {
		this.address_1 = address_1;
	}
	/**
	 * @return the address_2
	 */
	@Column(name="address_2")
	public String getAddress_2() {
		return address_2;
	}
	/**
	 * @param address_2 the address_2 to set
	 */
	public void setAddress_2(String address_2) {
		this.address_2 = address_2;
	}
	/**
	 * @return the company
	 */
	@Column(name="company")
	public String getCompany() {
		return company;
	}
	/**
	 * @param company the company to set
	 */
	public void setCompany(String company) {
		this.company = company;
	}
	/**
	 * @return the city
	 */
	@Column(name="city")
	public String getCity() {
		return city;
	}
	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}
	/**
	 * @return the state
	 */
	@Column(name="state")
	public String getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	/**
	 * @return the country
	 */
	@Column(name="country")
	public String getCountry() {
		return country;
	}
	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}
	/**
	 * @return the phone
	 */
	@Column(name="phone")
	public String getPhone() {
		return phone;
	}
	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * @return the postal_code
	 */
	@Column(name="postal_code")
	public Long getPostal_code() {
		return postal_code;
	}
	/**
	 * @param postal_code the postal_code to set
	 */
	public void setPostal_code(Long postal_code) {
		this.postal_code = postal_code;
	}
	/**
	 * @return the email
	 */
	@Column(name="email")
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the website
	 */
	@Column(name="website")
	public String getWebsite() {
		return website;
	}
	/**
	 * @param website the website to set
	 */
	public void setWebsite(String website) {
		this.website = website;
	}
	
}
